package cn.tedu.eb_film.service;

import cn.tedu.eb_film.pojo.dto.CinemaHallAddNewDTO;
import cn.tedu.eb_film.pojo.dto.CinemaHallUpdateDTO;
import cn.tedu.eb_film.pojo.vo.CinemaHallListVO;
import cn.tedu.eb_film.pojo.vo.CinemaHallStandardVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface CinemaHallService {

    String ENABLE_TEXT[] = {"禁用","启用"};
    String DISPLAY_TEXT[] = {"展示","隐藏"};
    /**
     * 添加新的放映厅
     * @param cinemaHallAddNewDTO
     */
    void addNew(CinemaHallAddNewDTO cinemaHallAddNewDTO);
    void updateById(CinemaHallUpdateDTO cinemaHallUpdateDTO);


    void setEnable(Long id);
    void setDisable(Long id);

    CinemaHallStandardVO getStandardById(Long id);

    /**
     * 对影厅进行逻辑删除
     * @param id
     */
    void deleteOnLogic(Long id);

    /**
     * 根据影院id查询下属影厅
     * @param cinemaId
     * @return
     */
    List<CinemaHallListVO> listByCinemaId(Long cinemaId);
}
